package com.liuxin.springmvc.service.impl.sys;

import com.liuxin.springmvc.dao.sys.AreaMapper;
import com.liuxin.springmvc.pojo.sys.Area;
import com.liuxin.springmvc.service.sys.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2016/5/31 0031.
 */
@Service
public class AreaServiceImpl implements AreaService {

    @Autowired
    private AreaMapper areaMapper;

    public int deleteByPrimaryKey(Integer id) {
        return areaMapper.deleteByPrimaryKey(id);
    }

    public int insert(Area record) {
        return areaMapper.insert(record);
    }

    public int insertSelective(Area record) {
        return areaMapper.insertSelective(record);
    }

    public Area selectByPrimaryKey(Integer id) {
        return areaMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Area record) {
        return areaMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Area record) {
        return areaMapper.updateByPrimaryKey(record);
    }
}
